package com.jt.yygh.service_client.dict;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jiang tao
 * @date 2022/3/6
 * @description:
 **/
@FeignClient("service-dict")
public interface DictFeignClient {
    /**
     * 获取数据字典名称
     * @param
     * @param value
     * @return
     */
    @GetMapping("/admin/dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable String dictCode,
                          @PathVariable String value);

    /**
     * 获取数据字典名称
     * @param value
     * @return
     */
    @GetMapping(value = "/admin/dict/getName/{value}")
    String getName(@PathVariable("value") String value);




}
